<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * pelamar.php
 * @author ranuandra
 *
 * 7 Mei 2012 08:41:48
 *
 * 
 */
?>
          <div class="toolbar-wrapper">
            	<div class="toolbar-container">
                    <ul class="toolbar">
                        <li><a href="<?php echo URL::base()?>admin/proseslowongan/xls/<?php echo $proses->id ?>" class="New"><span class="medium_icon_xls"></span></a></li>
                   		<li><a href="<?php echo URL::base()?>admin/proseslowongan/pdf/<?php echo $proses->id ?>" class="New"><span class="medium_icon_pdf"></span></a></li>
                    </ul>
                </div>
            	<h1 class="title"><?php echo $proses->mstlowongan->deskripsi?></h1>
            </div>
            <div class="content">
	            <table class="data">
	            	<tr>
	            		<td>Proses :</td>
	            		<td><?php echo $proses->mstproses->proses?></td>
	            		<td>Tanggal :</td>
	            		<td><?php echo $proses->tanggal?></td>
	            	</tr>
	             	<tr>
	            		<td>PIC :</td>
	            		<td><?php echo $proses->user->username?></td>
	            		<td>Cabang / Dept :</td>
	            		<td><?php echo $proses->user->mstplacement->placement?></td>
	            		<td>Alamat :</td>
	            		<td><?php echo $proses->alamat?></td>
	            	</tr>
	            </table>
	            <?php 
	            echo Form::open(URL::base().'admin/proseslowongan/confirm');
	            echo Form::hidden('proseslowongan_id', $id, array()); 
/*	            foreach($datas as $data)
	            {
	            	echo Form::hidden('pelamarlowongan_id[]', $data->id, array());
	            }  */         
	            ?>

            
           		<table class="data">
                	<thead>
                    	<tr>
                        	
                        	<th>Kode</th>
                        	<th>Nama</th>
                        	<th>Tgl Lahir</th>
                        	<th>Jenis Kelamin</th>
                        	<th>Pendidikan</th>
                        	<th>Jurusan</th>
                        	<th>Hadir</th>
                        	<th>Lolos</th>
                        	<th><input type="checkbox" name="kolom[]" class="cek_tbl"> Panggil</th>
                        	<th></th>
                        	
                        </tr>
                    </thead>
                    <tbody>
                    <?php 
                    if(isset($datas))
                    {
                    	foreach($datas as $data)
                    	{
                    		
                    ?>
                    	<tr>
                        	
                            <td><a class="popup" href="<? echo URL::base() ?>admin/pelamar/detail/<?php echo $data->pelamarlowongan_id?>"><?php echo $data->pelamarlowongan->kode_lamaran?></a></td>
                            <td><?php echo $data->pelamarlowongan->mstpelamar->nama_lengkap?></td>
                            <td><?php echo date("d-m-Y", strtotime($data->pelamarlowongan->mstpelamar->tgl_lahir))?></td>
                            <td><?php echo $data->pelamarlowongan->mstpelamar->jenis_kelamin?></td>
                            <td></td>
                            <td><?php echo $data->pelamarlowongan->mstpelamar->mstjurusan->jurusan?></td>
                            <td>
                            	<?php 
                            	if($data->flag_hadir == 0)
                            	{
                            		echo Form::checkbox('hadir[]', $data->id, '', array()); 
                            	}
                            	else 
                            	{
                            		echo '<img src="'.URL::base().'assets/images/accept.png" />';
                            	}
                            	?>
                            </td>
                            <td>
                            		                            
                            	<?php 
                            	if($data->flaglolos == 0)
                            	{
                            		echo Form::checkbox('lolos[]', $data->id, '', array()); 
                            	}
                    	        else 
                            	{
                            		echo '<img src="'.URL::base().'assets/images/accept.png" />';
                            	}
                            	?>
                            </td>
                            <td>
                            <?php 
	                            if($data->flag_panggil == 0)
	                            {
	                            	echo Form::checkbox('panggil[]', $data->id, '', array());
	                            }
                    	        else 
                            	{
                            		echo '<img src="'.URL::base().'assets/images/accept.png" />';
                            	}
                            ?>
                            </td>
                            <td>
                           		<a href="<? echo URL::base() ?>admin/hasilproses/hasil/<?php echo $data->id?>" class="fancy">hasil</a>
                            </td>

                        </tr>
                    <?php 
                    	}
                    }
                    ?>
                    </tbody>
                    <tfoot>
                    	<tr>
                        	<td></td>
                            <td></td>
                        	<td></td>
                        	<td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        	<td>
                        	<?php 
                        		echo Form::submit('submit', 'Proses', array());
                        	?>
                        	</td>
                        </tr>                    
                    </tfoot>
                </table>
            </div>
            <?php 
	            
	            echo Form::close();
            ?>